<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/MrChaoF.js"></script>
</head>

<body>
    <script>
        var obj = [{
            qty: "{\"S1\":4,\"S2\":0,\"S3\":0,\"L1\":0,\"L2\":0,\"L3\":0}"
        }, {
            qty: "{\"S1\":4,\"S2\":0,\"S3\":0,\"L1\":0,\"L2\":0,\"L3\":0}"
        }, {
            qty: "{\"S1\":4,\"S2\":0,\"S3\":0,\"L1\":0,\"L2\":0,\"L3\":0}"
        }]
        var a = new Mrchao()
        console.log(a.arrayadd(obj, "qty"))
        var ppt = function() {
            this.name = "xiaochao"
        }
        ppt.prototype = new Mrchao()
        ppt.prototype.getarrayadd = function(obj, qty) {
            return this.arrayadd(obj, qty)
        }
        var b = new ppt()
        console.log(b.getarrayadd(obj, "qty"))
    </script>
</body>

</html>